#{extends 'CRUD/layout.html' /} #{set
title:messages.get('crud.show.title', type.modelName) /}

<div id="crudShow" class="${type.name}">

	<h2 id="crudShowTitle">&{'crud.show.title', type.modelName}</h2>

	<div class="objectForm">
		#{form action:@save(object._key()), enctype:'multipart/form-data'}
			#{crud.form}
		           #{crud.custom 'colorTitleItem'} 
						<label for="colorTitleItem"> Couleur du titre </label> 
						<input id="colorTitleItem" class="color" name="${fieldName}" value="${object.colorTitleItem}" /> 
	       		   #{/crud.custom}
	        	   #{crud.custom 'colorDescriptionItem'} 
	        			<label for="colorDescriptionItem"> Couleur de la description </label>
	        			<input id="colorDescriptionItem" class="color" name="${fieldName}" value="${object.colorDescriptionItem}" /> 
	        	   #{/crud.custom}
	        	   #{crud.custom 'colorBackground'} 
	        			<label for="colorBackground"> Couleur de fond </label>
	        			<input id="colorBackground" class="color" name="${fieldName}" value="${object.colorBackground}" /> 
	        	   #{/crud.custom}
		#{/crud.form}
		<p class="crudButtons">
			<input type="submit" name="_save"
				value="&{'crud.save', type.modelName}" /> <input type="submit"
				name="_saveAndContinue"
				value="&{'crud.saveAndContinue', type.modelName}" />
		</p>
		#{/form}
	</div>

	#{form @delete(object._key())}
	<p class="crudDelete">
		<input type="hidden" value="&{'crud.delete', type.modelName}" />
	</p>
	#{/form}

</div>